/*
 * inotify-sync - a simple file synchronizer and file system watcher
 * Copyright (C) 2010-2011, inotify-sync developers and inotify-sync contributors
 * Copyright (C) 2010-2011, Cohesion Network Security Studio
 *
 * inotify-sync is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * inotify-sync is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with inotify-sync; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */

/*
 * FILE:			ProfileXmlTest.cpp
 * USAGE:			---
 * DESCRIPTION:		---
 * OPTIONS:			---
 * REQUIREMENTS:	---
 * BUGS:			---
 * NOTES:			---
 * AUTHOR:			LI Yiwei (mail:leeyiw@gmail.com)
 * COMPANY:			---
 * VERSION:			1.0
 * CREATED:			Sat Oct  8 12:12:30 CST 2011
 * REVISION:		---
 */

#include "ProfileXmlTest.h"

void
ProfileXmlTest::setUp()
{
	p_profile_xml=0;
}

void
ProfileXmlTest::tearDown()
{
	if(p_profile_xml)
		delete p_profile_xml;
}

CppUnit::Test*
ProfileXmlTest::suite()
{
	CppUnit::TestSuite *suite=new CppUnit::TestSuite("ProfileXmlTest");

	suite->addTest(new CppUnit::TestCaller<ProfileXmlTest>("testProfileXml()",
				&ProfileXmlTest::testProfileXml));

	return suite;
}

void
ProfileXmlTest::testProfileXml()
{
	if(p_profile_xml)
		delete p_profile_xml;
	p_profile_xml=new ProfileXml();
	CPPUNIT_ASSERT_MESSAGE("error when init conf_path"
							,p_profile_xml->conf_path=="../conf/conf.xml");
}
